package com.hmall.common.config;

import com.hmall.common.filter.MyFeignFilter;
import feign.RequestInterceptor;
import feign.RequestTemplate;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

@Configuration
public class FeignInterceptorConfig{


    @Bean
    public RequestInterceptor requestInterceptor(){
        return new MyFeignFilter();
    }


}

